<?php

	class adminModel{//从数据库存取数据

		//public $_table = 'admin';//定义表名

		//取用信息，通过表名//用户密码
		function findOne_by_username($table, $username){
			$sql = "select * from ".$table." where username='".$username."'";
			return DB::findOne($sql);
		}

		
	}
?>